<?php

namespace App\Http\Controllers\Admin\Shop;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class PrizeController extends Controller
{
    public function index()
    {
        view()->share([
            '_prize' => 'am-active',
            '_shop' => 'am-in'
        ]);

        return view('admin.shop.prize.index');
    }

    public function draw()
    {

        $data=array(
            0=>array('id'=>1,'name'=>'一等奖','weight'=>'5'),
            1=>array('id'=>2,'name'=>'二等奖','weight'=>'10'),
            2=>array('id'=>3,'name'=>'三等奖','weight'=>'25'),
            3=>array('id'=>4,'name'=>'谢谢抽奖','weight'=>'60')
        );

    }
}
